function arrsum(arr) {
    var s =0
    for(var i= arr.length -1;i>=0;i--){
        s+=arr[i]
    }
    return s;
}
console.log(arrsum([3,5,7,66]))